# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-singlefile
_pkgname=singlefile
pkgver=0.0.1a0
pkgrel=10
pkgdesc='Import from web. Share your snippets and import them from web.'
arch=('any')
url='https://pypi.org/project/singlefile/#files'
license=('MIT')
depends=('python' 'python-requests')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2a2b06aae9fa375d36d7f9e6c301c48ed69b65089803961b25ad435bf537bfc98b1384a26b709d801c71c4c677e9d2fa2fd181320bf5fc4314cc29ab57b229cd')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

